import service from '@/utils/request'

// @Tags SignRecord
// @Summary 创建考勤记录
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SignRecord true "创建考勤记录"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /signre/createSignRecord [post]
export const createSignRecord = (data) => {
  return service({
    url: '/signre/createSignRecord',
    method: 'post',
    data
  })
}

// @Tags SignRecord
// @Summary 删除考勤记录
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SignRecord true "删除考勤记录"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /signre/deleteSignRecord [delete]
export const deleteSignRecord = (params) => {
  return service({
    url: '/signre/deleteSignRecord',
    method: 'delete',
    params
  })
}

// @Tags SignRecord
// @Summary 批量删除考勤记录
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除考勤记录"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /signre/deleteSignRecord [delete]
export const deleteSignRecordByIds = (params) => {
  return service({
    url: '/signre/deleteSignRecordByIds',
    method: 'delete',
    params
  })
}

// @Tags SignRecord
// @Summary 更新考勤记录
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SignRecord true "更新考勤记录"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /signre/updateSignRecord [put]
export const updateSignRecord = (data) => {
  return service({
    url: '/signre/updateSignRecord',
    method: 'put',
    data
  })
}

// @Tags SignRecord
// @Summary 用id查询考勤记录
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SignRecord true "用id查询考勤记录"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /signre/findSignRecord [get]
export const findSignRecord = (params) => {
  return service({
    url: '/signre/findSignRecord',
    method: 'get',
    params
  })
}

// @Tags SignRecord
// @Summary 分页获取考勤记录列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取考勤记录列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /signre/getSignRecordList [get]
export const getSignRecordList = (params) => {
  return service({
    url: '/signre/getSignRecordList',
    method: 'get',
    params
  })
}
